package com.fbinggun.fbinggunutil.statistics.datatype;

import com.alibaba.fastjson.JSONObject;
import com.fbinggun.fbinggunutil.statistics.StatisticsInfo;

public class StringInfo extends StatisticsInfo<String> {


    public StringInfo(String id, String string) {
        super(id, string);
    }

    public StringInfo(String id, JSONObject jsonObject) {
        super(id, jsonObject);
    }

    @Override
    public StatisticsInfo copy(String id, JSONObject jsonObject) {
        return new StringInfo(id,jsonObject);
    }

    @Override
    public StatisticsInfo copy(String id, String string) {
        return new StringInfo(id,string);
    }

    @Override
    protected void setValue(String value) {
        setValue(value);
    }

    @Override
    protected void setSValue(String t) {
        setValue(t);
    }

    @Override
    protected void addValue(String s) {
            setValue(s);
    }

    @Override
    protected void addSValue(String t) {

    }

    @Override
    public String getPlaceholder() {
        return getValue();
    }


}
